﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using VideoClubGorbea.Infraestructure.DomainBase;

namespace VideoClubGorbea.Model
{
    public class Movie : IEntity
    {
        public Movie()
        {
            
        }
        //[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int MovieID { get { return Convert.ToInt32(this.Id); } set { this.Id = value; } }
        public DateTime? ReleaseDate { get; set; }       
        public string Title { get; set; }
        public Person Director { get; set; }
        public Person Productor { get; set; }
        public double Price { get; set; }       
        public string Slogan { get; set; }
        public string OverView { get; set; }
        public int Popularity { get; set; }
        public bool ForAdults { get; set; }
        public int Votes { get; set; }
        public double Rating { get; set; }
        public string Certification { get; set; }

        
        public virtual ICollection<Person> Actors { get; set; }        
        public virtual ICollection<Image> Posters { get; set; }


        public long Id
        {
            get;
            set;
        }
    }
}
